package cn.nkpro.elcube.platform.service;

import cn.nkpro.elcube.platform.model.NkShortMessageResult;

import java.util.List;
import java.util.Map;

public interface NkShortMessageService {

    /**
     * 发送手机验证码
     * @param phone 手机号
     * @return 随机验证码
     */
    String sendVerCode(String phone);
    /**
     * @Description: 发送短信
     * @Param: [手机号, 短信模板, 短信参数]
     * @return: java.util.Map
     **/
    NkShortMessageResult sendTemplateMessage(String phone, String templateCode, Map<String,String> templateParams);

    NkShortMessageResult sendTemplateMessage(List<String> phoneList, String templateCode, Map<String,String> templateParams);

    NkShortMessageResult sendTemplateMessage(List<String> phoneList, String templateCode, List<Map<String,String>> templateParams);

}
